home *** CD-ROM | disk | FTP | other *** search
/ MacHome 2001 January / MacHome Magazine Demo Disc January 2001.iso / mac / Software / Networking / InterMapper 3.0 - PPC.sea / InterMapper 3.0 - PPC / InterMapper™ 3.0-PPC / InterMapper™ 3.0-PPC.rsrc / PrTy_151_com.dartware.tcp.ftp.nologin < prev    next >
Encoding:
Text File  |  2000-07-24  |  1.8 KB  |  73 lines

  1. <!-- 
  2.     FTP (No Login) (com.dartware.tcp.http)
  3.     Copyright © 2000 Dartware, LLC. All rights reserved.
  4. -->
  5.  
  6. <header>
  7.     type            =     "tcp-script"
  8.     package            =     "com.dartware"
  9.     probe_name        =    "tcp.ftp.nologin"
  10.     human_name        =    "FTP (No Login)"
  11.     version            =     "1.1"
  12.     address_type    =     "IP"
  13.     port_number        =    "21"
  14.     
  15.     old_protocol    =     "8"            # Backward compat. with old numbering scheme.
  16.     old_script        =     "8005"
  17.  
  18. </header>
  19.  
  20. <description>
  21.  
  22. ≤GB≥File Transfer Protocol (No Login)≤P≥
  23.  
  24. The standard protocol for transferring files on TCP/IP internets, as defined in ≤U2≥RFC 959≤P0≥.  The default TCP port number for FTP control connections is port 21.
  25.  
  26. This TCP script connects to the FTP server's control port (21), and issues a NOOP command without logging in.  The script concludes by issuing the QUIT command.
  27.  
  28. Note:  Use this script if you are going to be frequently probing the FTP server, so it doesn't fill your log files with user logins and logouts.
  29.  
  30. </description>
  31.  
  32. <parameters>
  33.  
  34. -- No parameters.
  35.  
  36. </parameters>
  37.  
  38. <script>
  39.  
  40. CONN #60 (connect timeout in secs)
  41. WAIT #30 @IDLE (idle timeout in secs)
  42. MTCH "220" else goto @UNEXPECTED_GREETING
  43. EXPT "220 " else goto @DISCONNECT
  44. SEND "NOOP\r\n"
  45. MTCH "200" else goto @BAD_NOOP_RESPONSE
  46. EXPT "200 " else goto @DISCONNECT
  47. SEND "QUIT\r\n"
  48. MTCH "221" #+2
  49. EXPT "221 " #+1
  50. DONE OKAY
  51.  
  52. @UNEXPECTED_GREETING:
  53. STAT DOWN "[FTP] Unexpected greeting from port ${_REMOTEPORT}. (${_LINE:50})"
  54. SEND "QUIT\r\n"
  55. MTCH "221" #+2
  56. EXPT "221 " #+1
  57. EXIT
  58.  
  59. @BAD_NOOP_RESPONSE:
  60. STAT ALRM "[FTP] Unexpected response to NOOP command. (${_LINE:50})"
  61. SEND "QUIT\r\n"
  62. MTCH "221" #+2
  63. EXPT "221 " #+1
  64. EXIT
  65.  
  66. @IDLE:
  67. DONE DOWN "[FTP] No data for ${_IDLETIMEOUT} seconds.  Was expecting \"${_STRINGTOMATCH}\". [Line ${_IDLELINE}]"
  68.  
  69. @DISCONNECT:
  70. DONE DOWN "[FTP] Connection disconnected while expecting \"${_STRINGTOMATCH}\"."
  71.  
  72. </script>
  73.